<?php
require_once('internal/IModule.interface.php');

class Menu implements IModule {
	function execute() {
		global $db;
		print '<table><tr>';
		$db->modeAssoc();
		$res = $db->select('modules', '*', array("type='adminmodule'"));
		foreach ($res as $k => $assoc) if ($assoc['shortname'] != 'menu') {
			$path = checkIfExists($assoc['shortname']);
			print '<td width="120"><a href="admin.php?action='.$assoc['shortname'].'"><img src="'.$path.'icon.png" /></a><br />'.$assoc['fullname'].'</td>';
		}
		print '</tr></table>';
	}
}
?>
